import axios from "@/http/axios"
export default {
    // 前台部门表
    getFrontDepartment(data, binding) {
        return axios({
            url: '/crm/getFrontDepartment',
            method: 'get',
            params: data,
            headers: {
                "binding": binding
            }
        })
    },
    // 值班新增
    insertDuty(data, binding) {
        return axios({
            url: '/crm/insertDuty',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 值班查询
    selectDuty(data, binding) {
        return axios({
            url: '/crm/selectDuty',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 值班修改
    updateDuty(data, binding) {
        return axios({
            url: '/crm/updateDuty',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    deleteDuty(data, binding) {
        return axios({
            url: '/crm/deleteDuty',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    getEmailModel_Api(data) {
        return axios({
            url: '/crm/selectDutyEmail',
            method: 'get',
            params: data
        })
    },
}
